<?php

class lfCollection implements ArrayAccess
{

	/**
	 * @see ArrayAccess::offsetExists()
	 *
	 * @param offset $offset
	 */
	public function offsetExists($offset)
	{
		return array_key_exists($offset, $this->data);
	}

	/**
	 * @see ArrayAccess::offsetGet()
	 *
	 * @param offset $offset
	 */
	public function offsetGet($offset)
	{
		return $this->data[$offset];
	}

	/**
	 * @see ArrayAccess::offsetSet()
	 *
	 * @param offset $offset
	 * @param value $value
	 */
	public function offsetSet($offset, $value)
	{
		$this->data[$offset] = $value;
	}

	/**
	 * @see ArrayAccess::offsetUnset()
	 *
	 * @param offset $offset
	 */
	public function offsetUnset($offset)
	{
		unset($this->data[$offset]);
	}
	
	protected $data;
}

?>